﻿using System;

namespace OpenWaves.EPiServer.BrightcoveVideoCloudProperty
{
    public class Query
    {
        public static int DefaultMaxItems = 12;

        public Query()
        {
            ItemsPerPage = DefaultMaxItems;
        }

        public string Phrase { get; set; }

        public int ItemsPerPage { get; set; }

        public int PageNumber { get; set; }

        public QueryBuilder GetBuilder()
        {
            return QueryBuilder.From(this);
        }

        public Uri ToRelativeUri()
        {
            return QueryUrlBuilder.Build(this);
        }
    }
}